home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / text / hyper / ADtoHT2_1.lha / Source.lha / MyLib.lha / stdio / perror.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-04  |  327 b   |  19 lines

  1. #include <stdio.h>
  2. #include <errno.h>
  3.  
  4. #include <proto/dos.h>
  5.  
  6. #include "Internal.h"
  7.  
  8. /************************************************************************/
  9.  
  10. void perror(const char *String)
  11.  
  12. {
  13.   BPTR OldOutput;
  14.  
  15.   OldOutput=SelectOutput(stderr->Filehandle);
  16.   PrintFault(errno,(char *)String);
  17.   SelectOutput(OldOutput);
  18. }
  19.